package ms.maplestory.boot.client.character.quest.reward;

public enum QuestRewardType {
    EXP(0),
    ITEM(1),
    MONEY(2),
    POP(3),
    BUFF_ITEM(4);

    private byte value;

    QuestRewardType(int value) {
        this.value = (byte) value;
    }

    public byte getValue() {
        return value;
    }

    public static QuestRewardType getQPRTByObj(Object o) {
        return o instanceof QuestExpReward ? EXP :
                o instanceof QuestItemReward ? ITEM :
                        o instanceof QuestMoneyReward ? MONEY :
                                o instanceof QuestPopReward ? POP :
                                        o instanceof QuestBuffItemReward ? BUFF_ITEM : null;
    }

}
